<template>
  <view>
    <u-navbar title="账号管理" back-icon-size="34" title-size="36" :border-bottom="false" :background="background" title-color="#222" back-icon-color="#222"></u-navbar>
    <view class="" style="display: flex; align-items: center; justify-content: space-between; padding: 28rpx 41rpx; font-size: 28rpx" @tap="outlogin">
      <view class="">退出登录</view>
      <view class="">
        <u-icon name="arrow-right"></u-icon>
      </view>
    </view>
  </view>
</template>

<script>
// import TIM from 'tim-wx-sdk';

export default {
  name: '',
  data() {
    return {
      background: {
        background: '#FFFFFF'
      }
    };
  },
  //方法
  methods: {
    outlogin() {
      // const tim = TIM.create({ SDKAppID: 1400790609 });
      uni.clearStorageSync();
      // tim.logout();
      // tim.destroy();
      setTimeout(() => {
        uni.reLaunch({
          url: '/pages/login/login'
        });
      }, 1000);
    }
  },
  //首页渲染
  onLoad(options) {},
  //监听
  watch: {},
  //计算属性
  computed: {}
};
</script>

<style lang="scss" scoped></style>
